package com.eternal.base.data.source;


import androidx.room.TypeConverter;

import com.eternal.base.concat.PortInfo;
import com.eternal.framework.utils.GsonUtils;

import java.util.List;

public class BooleanConverters {

    @TypeConverter
    public static List<Boolean> stringToBooleanList(String data) {
        return GsonUtils.getList(data,Boolean.class);
    }

    @TypeConverter
    public static String booleanListToString(List<Boolean> list) {
        return GsonUtils.toJson(list);
    }
}
